package Server;

import Factorial.Factorial;

public class  CirculateImpl implements Factorial {

    @Override
    public int fact(int n) {
        int a=1,i=1;
        while(i<=n) {
            a = a * i;

            i++;
        }

            return a;
    }
}
